package com.gamesnet.models;


public class Utilisateur extends Listable {
	
	private String mail, nom, prenom, image, adresse, codePostal, ville;
	
	public Utilisateur(String mail, String nom, String prenom, String image,
			String adresse, String codePostal, String ville, long id) {
		
		this.mail = mail;
		this.nom = nom;
		this.prenom = prenom;
		this.image = image;
		this.adresse = adresse;
		this.codePostal = codePostal;
		this.ville = ville;
		this.id = id;
	}

	@Override
	public String image() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public String getCodePostal() {
		return codePostal;
	}

	public void setCodePostal(String codePostal) {
		this.codePostal = codePostal;
	}

	public String getVille() {
		return ville;
	}

	public void setVille(String ville) {
		this.ville = ville;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	private long id;
	
	public Utilisateur(){}
	
	public Utilisateur(String nom, String prenom) {
		this.nom = nom;
		this.prenom = prenom;
	}

	public String getMail() {
		return mail;
	}

	public String getNom() {
		return nom;
	}

	public String getPrenom() {
		return prenom;
	}

	public String getAdresse() {
		return adresse;
	}


	@Override
	public String afficher() {
		return prenom+" "+nom;
	}
	
	@Override
	public void supprimer(){
		//do nothing for the moment
	}

	@Override
	public boolean isNew() {
		return false;
	}
	
}
